package net.lab1024.sa.admin.module.flowable.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.sa.admin.module.business.goods.domain.form.GoodsQueryForm;
import net.lab1024.sa.admin.module.business.goods.domain.vo.GoodsVO;
import net.lab1024.sa.admin.module.flowable.domain.FlowableCategory;
import net.lab1024.sa.admin.module.flowable.domain.form.FlowableCategoryForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 流程分类Mapper接口
 * 
 * @author ruoyi
 * @date 2023-11-27
 */
@Mapper
public interface FlowableCategoryMapper extends BaseMapper<FlowableCategory>
{
    /**
     * 查询流程分类
     * 
     * @param id 流程分类主键
     * @return 流程分类
     */
    public FlowableCategory selectFlowableCategoryById(Long id);

    public Integer checkExists(FlowableCategory flowableCategory);

    /**
     * 查询流程分类列表
     * 
     * @param flowableCategory 流程分类
     * @return 流程分类集合
     */
    public List<FlowableCategory> selectFlowableCategoryList(FlowableCategory flowableCategory);

    /**
     * 新增流程分类
     * 
     * @param flowableCategory 流程分类
     * @return 结果
     */
    public int insertFlowableCategory(FlowableCategory flowableCategory);

    /**
     * 修改流程分类
     * 
     * @param flowableCategory 流程分类
     * @return 结果
     */
    public int updateFlowableCategory(FlowableCategory flowableCategory);

    /**
     * 删除流程分类
     * 
     * @param id 流程分类主键
     * @return 结果
     */
    public int deleteFlowableCategoryById(Long id);

    /**
     * 批量删除流程分类
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFlowableCategoryByIds(Long[] ids);

    public  List<FlowableCategory> query(Page page, @Param("query") FlowableCategoryForm query);
}
